package com.guo.book1.factory;

public class Test {
    public static void main(String[] args) {
        CourseFactory factory = new CourseFactory();
        ICourse javaCourse = factory.create(JavaCourse.class);
        javaCourse.record();
        ICourse pyCourse = factory.create(PythonCourse.class);
        pyCourse.record();
    }
}
